package com.xsky.logic.caseresolve;

import java.util.List;

import com.xsky.common.util.UUIDUtil;
import com.xsky.database.dao.impl.BaseEntityDaoImpl;
import com.xsky.operation.vo.TabCaseResolveDesc;

public class CaseResolveDescLogic
{
	BaseEntityDaoImpl dao = new BaseEntityDaoImpl();
	public List<TabCaseResolveDesc> queryByCaseDescResolveId(String caseDescId)
	{
		return dao.findByKey(new TabCaseResolveDesc(), "caseDescId", caseDescId);
	}
	public void addOrUpdate(TabCaseResolveDesc crd)
	{
		if(crd.getId() == null){
			crd.setId(UUIDUtil.getUUID());
		}
		dao.saveOrUpdateEntity(crd);
		
		
	}

}
